const mongoose = require('mongoose');
const ticketSchema = new mongoose.Schema({
  //关联会话
  sessionId:{type:mongoose.Schema.Types.ObjectId,ref: 'Session', required: true },
  //状态
  status:{type:String,enum:['pending','processing','completed'],},
  createTime:{type:Date}
});
const Ticket = mongoose.model('Ticket', ticketSchema);
module.exports = Ticket;